package com.kwlt.smc.service;


import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.kwlt.smc.dao.UserChannelDao;
import com.kwlt.smc.entity.UserChannel;



/**
 * 用户管理类
 * @author xushunxin
 *
 */
//Spring Bean的标识.
@Component
//默认将类中的所有public函数纳入事务管理.
@Transactional(readOnly = true)
public class UserChannelService {
	private static Logger logger = LoggerFactory.getLogger(UserChannelService.class);
	@Autowired
	private UserChannelDao userChannelDao;
	
	/**
	 * 查询用户通道详细信息
	 * @param id
	 * @return
	 */
	public UserChannel getUserChannel(Long id){
		return userChannelDao.findOne(id);
	}

//	public List getUserChannelByUserId(Long userId) {
//		// TODO Auto-generated method stub
//		return userChannelDao.getUserChannelByUserId(userId);
//	}
	
}
